EXEC=main

CC=gcc
CFLAGS=
LDFLAGS=-lglut -gp -Wall -O3 -debug


all: $(EXEC)

%.o: %.c
	@echo "-- Compilation \t: " $@
	@$(CC) -o $@ -c $< $(CFLAGS)

$(EXEC): main.o
	@echo "-- Link \t: " $@
	@$(CC) -o $(EXEC) $^ $(LDFLAGS)

clean:
	@rm -f $(EXEC) *.o
